#ifndef SEARCHDIALOG_H
#define SEARCHDIALOG_H

#include <QDialog>
#include "globals.h"

namespace Ui {
    class SearchDialog;
}

class SearchDialog : public QDialog
{
    Q_OBJECT

public:
    explicit SearchDialog(QWidget *parent = 0);
    QString resultFilename();
    ~SearchDialog();

private:
    QString resFile;
    Ui::SearchDialog *ui;
    QString getPlayersIdByName(QString name);
    QString getPlayersNameByID(QString id);
    QString convertResult(int);

private slots:
    void on_exitBttn_clicked();
    void on_resultDefinition_stateChanged(int );
    void on_secondPlayersCombo_editTextChanged(QString );
    void on_secondPlayerCheck_stateChanged(int );
    void on_firstPlayerNameCombo_editTextChanged(QString );
    void on_findBttn_clicked();
};

#endif // SEARCHDIALOG_H
